﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QuestLib_TestCode
{
    public partial class Form2 : Form
    {

        private MyQuestPlayer _QuestPlayer;
        //private uint _param;
        public Form2(MyQuestPlayer QuestPlayer,String param)
        {
            InitializeComponent();

            _QuestPlayer = QuestPlayer;
            //_param = param;

            this.label1.Text = String.Format("Quest Msg ({0})?", param);
        }

        private void button1_Click(object sender, EventArgs e)
        {


            _QuestPlayer.OnEvent((int)CONTYPE.DIALOG, 1);
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            _QuestPlayer.OnEvent((int)CONTYPE.DIALOG, 0);
            this.Close();
        }
    }
}